package com.kystar.muxplayer.protocol.code.get;

import com.kystar.muxplayer.base.Const.SOURCE_TYPE;
import com.kystar.muxplayer.model.SourceType;
import com.kystar.muxplayer.protocol.CodeCmd;

public class CG85_SyncSource extends CodeCmd {

    private CG85_SyncSource() {
        super(CODE_OK);
    }

    @Override
    public byte getCode() {
        return (byte) 0x85;
    }


    public SourceType getSourceId() {
        if (mResult[0] == 0) {
            return SourceType.None;
        }
        return SourceType.values()[mResult[1] & 0xff];
    }

    public static CG85_SyncSource create() {
        return new CG85_SyncSource();
    }
}
